package entity;

import java.util.Date;

public class Leave {
    private String leaveID;
    private String courseID;
    private String reason;
    private int daynum;
    private String stuNo;
    private Date applytime;
    private String status;
    private Date audittime;
    private String opinion;

    @Override
    public String toString() {
        return "Leave{" +
                "leaveID='" + leaveID + '\'' +
                ", courseID='" + courseID + '\'' +
                ", reason='" + reason + '\'' +
                ", daynum=" + daynum +
                ", stuNo='" + stuNo + '\'' +
                ", applytime=" + applytime +
                ", status='" + status + '\'' +
                ", audittime=" + audittime +
                ", opinion='" + opinion + '\'' +
                '}';
    }

    public String getLeaveID() {
        return leaveID;
    }

    public void setLeaveID(String leaveID) {
        this.leaveID = leaveID;
    }

    public String getCourseID() {
        return courseID;
    }

    public void setCourseID(String courseID) {
        this.courseID = courseID;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public int getDaynum() {
        return daynum;
    }

    public void setDaynum(int daynum) {
        this.daynum = daynum;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public Date getApplytime() {
        return applytime;
    }

    public void setApplytime(Date applytime) {
        this.applytime = applytime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getAudittime() {
        return audittime;
    }

    public void setAudittime(Date audittime) {
        this.audittime = audittime;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public Leave(String leaveID, String courseID, String reason, int daynum, String stuNo, Date applytime, String status, Date audittime, String opinion) {
        this.leaveID = leaveID;
        this.courseID = courseID;
        this.reason = reason;
        this.daynum = daynum;
        this.stuNo = stuNo;
        this.applytime = applytime;
        this.status = status;
        this.audittime = audittime;
        this.opinion = opinion;
    }

    public Leave(String leaveID, String courseID, String reason, int daynum, String stuNo, Date applytime,String status) {
        this.leaveID = leaveID;
        this.courseID = courseID;
        this.reason = reason;
        this.daynum = daynum;
        this.stuNo = stuNo;
        this.applytime = applytime;
        this.status = status;
    }
    public Leave(String leaveID,String opinion,String status,Date audittime) {
        this.leaveID = leaveID;
        this.opinion = opinion;
        this.status = status;
        this.audittime = audittime;
    }
}
